from rest_framework import serializers
from ..models import Post,Comment

class SubjectSerializer(serializers.ModelSerializer):
	# Meta 类允许你去在指定模型序列号以及给序列话包含的字段
	class Meta:
		model = Post
		fields = ('status','title','slug')